package com.xizi.cglib;

import com.xizi.prox.SmsProxy;
import com.xizi.prox.SmsService;
import com.xizi.prox.SmsServiceImpl;

import java.util.ArrayList;
import java.util.concurrent.ConcurrentHashMap;

public class Main {
    public static void main(String[] args) {

//        new ConcurrentHashMap<>()
//        new ArrayList<>()

        //传入被代理的接口类
        AliSmsService aliSmsService = (AliSmsService) CglibProxyFactory.getProxy(AliSmsService.class);
        aliSmsService.send("戏子6666666666666666");
    }
}